3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate lines. See "Lines" for the definition of a line.
You can use the Q3Line_New function to create a new line.
TQ3GeometryObject Q3Line_New (const TQ3LineData *lineData);
You can use the Q3Line_Submit function to submit an immediate line for drawing, picking, bounding, or writing.
TQ3Status Q3Line_Submit (
const TQ3LineData *lineData,
TQ3ViewObject view);
The Q3Line_Submit function submits for drawing, picking, bounding, or writing the immediate line whose location and attribute set are specified by the lineData parameter. The line is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Line_GetData function to get the data that defines a line and its attributes.
TQ3Status Q3Line_GetData (
TQ3GeometryObject line,
TQ3LineData *lineData);
You can use the Q3Line_SetData function to set the data that defines a line and its attributes.
TQ3Status Q3Line_SetData (
TQ3GeometryObject line,
const TQ3LineData *lineData);
You can use the Q3Line_GetVertexPosition function to get the position of a vertex of a line.
TQ3Status Q3Line_GetVertexPosition (
TQ3GeometryObject line,
unsigned long index,
TQ3Point3D *position);
You can use the Q3Line_SetVertexPosition function to set the position of a vertex of a line.
TQ3Status Q3Line_SetVertexPosition (
TQ3GeometryObject line,
unsigned long index,
const TQ3Point3D *position);
You can use the Q3Line_GetVertexAttributeSet function to get the attribute set of a vertex of a line.
TQ3Status Q3Line_GetVertexAttributeSet (
TQ3GeometryObject line,
unsigned long index,
TQ3AttributeSet *attributeSet);
You can use the Q3Line_SetVertexAttributeSet function to set the attribute set of a vertex of a line.
TQ3Status Q3Line_SetVertexAttributeSet (
TQ3GeometryObject line,
unsigned long index,
TQ3AttributeSet attributeSet);
You can use the Q3Line_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Line_GetData .
TQ3Status Q3Line_EmptyData (TQ3LineData *lineData);
Previous | QD3D Book | Overview | Chapter Contents | Next |